home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
lang
/
f2c_amiga1.lha
/
f2c-1993.04.28amiga
/
libF77
/
s_stop.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-28
|
465b
|
34 lines
#include "stdio.h"
#include "f2c.h"
#ifdef KR_headers
extern void f_exit();
VOID s_stop(s, n) char *s; ftnlen n;
#else
#undef abs
#include "stdlib.h"
#ifdef __cplusplus
extern "C" {
#endif
void f_exit(void);
int s_stop(char *s, ftnlen n)
#endif
{
int i;
if(n > 0)
{
fprintf(stderr, "STOP ");
for(i = 0; i<n ; ++i)
putc(*s++, stderr);
fprintf(stderr, " statement executed\n");
}
f_exit();
exit(0);
#ifdef __cplusplus
return 0; /* NOT REACHED */
}
#endif
}